package 集合.集合存储自定义对象;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.function.Consumer;

public class test {
    public static void main(String[] args) {
        Collection<move> a=new ArrayList<>();
        a.add(new move("缘之空",10.0,"李佳辉"));
        a.add(new move("回家的诱惑",100.0,"寿叶峰"));
        a.add(new move("喜羊羊",80.0,"喜羊羊"));
        a.forEach(move-> System.out.println(move.toString()));
    }
}
